package com.itheima.pojo;

import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * 
 *
 * @author Michael Chow
 * @date   2020/11/14
 */
@Table(name = "t_menu")
public class Menu implements Serializable {
    /**
     * 
     */
    @Id
    private Integer id;

    /**
     * 菜单或按钮名称
     */
    private String menu;

    /**
     * 菜单或按钮说明
     */
    private String info;

    /**
     * 菜单请求链接
     */
    private String url;

    /**
     * 上级菜单
     */
    private Integer pid;

    /**
     * 1:菜单。2:按钮。
     */
    private String type;

    /**
     * 0:后台菜单，1:平台菜单
     */
    private String category;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getMenu() {
        return menu;
    }

    public void setMenu(String menu) {
        this.menu = menu;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }
}